<template>
  <h3>母亲的地方</h3>
  <!--  固定传递直接使用 变量=, 传递动态的数据则需要 :变量= 进行绑定操作-->
  <Child title="mother给子类的标题" :dataList="dataList"></Child>
</template>
<script>
import Child from "@/components/Child.vue";

export default {
  data() {
    return {
      dataList: [
        {"id":1,"name":"张姗1"},
        {"id":2,"name":"王舞2"},
        {"id":3,"name":"诸葛亮3"},
        {"id":4,"name":"赵云4"},
        {"id":5,"name":"刘备5"},
      ],
      msg: "父类的数据"
    }
  },
  components:{
    Child
  }
}

</script>
